#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main()
{
    char *ptr = "hello world"; //保存在数据段的or段内；该数据不能被修改

    char src[100] = "hello world";

    char *str = (char *)malloc(sizeof(char) * 100);

    strcpy(str, "hello world");

    printf("hello world = %p\n", "hello world");
    printf("ptr = %p\n", ptr);
    printf("src = %p\n", src);
    printf("str = %p\n", str);
}